//
//  Category_product_CvCell.m
//  ainkjj
//
//  Created by zhiyiLiu on 2020/3/9.
//  Copyright © 2020 zhiyiLiu. All rights reserved.
//

#import "Category_product_CvCell.h"



@implementation Category_product_CvCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    self = [[NSBundle mainBundle] loadNibNamed:@"Category_product_CvCell" owner:self options:nil].lastObject;
    //    self.contentView.backgroundColor = UIColor.redColor;
    return self;
}
- (void)setEntity:(App_categoryProduct_list *)entity{
    _entity = entity;
    [self.icon_iv sd_setImageWithURL:[NSURL URLWithString:entity.icon]];
    self.name_lb.text = entity.product_name;
}
@end
